import 'package:flutter/material.dart';
import 'package:testlzhu/utils/index.dart';

class CeilingHeaderDelegate extends SliverPersistentHeaderDelegate {
  @override
  Widget build(BuildContext context, double shrinkOffset, bool overlapsContent) {
    return Container(

      child: Column(children: [


        Container(height: 50,color: Colors.amber,),
        Container(height: 50,color: Colors.red,)
      ],),

    );
  }

  @override
  double get maxExtent => 100;

  @override
  double get minExtent => 50;

  @override
  bool shouldRebuild(covariant SliverPersistentHeaderDelegate oldDelegate) {
    return true;
  }
}
